
export default class NetConfig{

    //连接类型。
    static HTTP = "http";
    static SOCKET = "socket";
    static WEB_SOCKET = "web_socket";
    static LOCAL = 'local';

    //数据格式的类型。
    // static BIN = "bin";
    // static JSON = "json";
    // static PROTOBUF = "protobuf";

    // 服务器连接状态
    static OPEN = "OPEN";
    static CLOSED = "CLOSED";
    static ERROR = "ERROR";
    static DATA = "DATA";    

    //短链接模型的推送数据
    static UPDATE_DATA = 'UPDATE_DATA';
    // Http method
    static GET = "GET";
    static POST = "POST";    

    static CHANGE_DATA = "changes_user_data";

    static ERROR_DATA = "error_user_data";


    static MAX_SEND_NUM:number = 3;
}
